package org.zkdemo.messages;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Message implements Serializable
{
    private static final long         serialVersionUID = 1L;
    
    private MessageType               type;
    private Map<String, Serializable> arguments        = new HashMap<String, Serializable>();
    
    public Message()
    {
        
    }
    
    public Message(MessageType type, Map<String, Serializable> arguments)
    {
        super();
        this.type = type;
        this.arguments = arguments;
    }
    
    public MessageType getType()
    {
        return type;
    }
    
    public void setType(MessageType type)
    {
        this.type = type;
    }
    
    public Map<String, Serializable> getArguments()
    {
        return arguments;
    }
    
    public void setArguments(Map<String, Serializable> arguments)
    {
        this.arguments = arguments;
    }
    
    @Override
    public String toString()
    {
        return "Message [type=" + type + ", arguments=" + arguments + "]";
    }
    
}
